import type { AxiosRequestConfig, AxiosResponse } from 'axios';
type arrayFormatType = 'indices' | 'brackets' | 'repeat' | 'comma' | undefined;
export interface RequestInterceptors<T> {
    // 请求拦截
    requestInterceptors?: (config: AxiosRequestConfig) => AxiosRequestConfig;
    // 响应拦截
    responseInterceptors?: (res: T) => T;
}
// 自定义传入的参数 （请求的参数）
export interface RequestConfig<T = AxiosResponse> extends AxiosRequestConfig {
    interceptors?: RequestInterceptors<T>;
    arrayFormat?: arrayFormatType;
}
export interface CancelRequestSource {
    [index: string]: () => void;
}
// 取消的请求唯一key
export interface CancelConfig {
    method: string;
    url: string;
    data?: any;
}
